﻿using Newtonsoft.Json;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 用户信息数据模型
    /// </summary>
    public class MemberData
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [JsonProperty("id"), JsonPropertyName("id")]
        public long Id { get; set; }

        /// <summary>
        /// openid
        /// </summary>
        [JsonProperty("open_id"), JsonPropertyName("open_id")]
        public string OpenId { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        [JsonProperty("phone"), JsonPropertyName("phone")]
        public string Phone { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [JsonProperty("nick_name"), JsonPropertyName("nick_name")]
        public string NickName { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [JsonProperty("profile"), JsonPropertyName("profile")]
        public string Profile { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [JsonProperty("sex"), JsonPropertyName("sex")]
        public string Sex { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [JsonProperty("group_id"), JsonPropertyName("group_id")]
        public long GroupId { get; set; }

        /// <summary>
        /// 是否群主
        /// </summary>
        [JsonProperty("is_master"), JsonPropertyName("is_master")]
        public bool IsMaster { get; set; }
    }
}
